package cn.com.chengmandian.bike.service;

import cn.com.chengmandian.bike.model.EbDepositRecord;
import cn.com.chengmandian.bike.model.EbRefundInfo;
import cn.com.chengmandian.core.web.pojo.AgentInfo;
import cn.com.chengmandian.core.web.pojo.LoginUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 电单车运营-押金记录 服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2023-11-16
 */
public interface IEbDepositRecordService extends IService<EbDepositRecord> {

    EbDepositRecord getByMember(Integer memberId);

    void createRecord(Integer memberId, BigDecimal money, Integer payId);

    void refund(EbDepositRecord depositRecord, String refundRemark, AgentInfo agentInfo, LoginUser loginUser);

    void refundSuccess(EbRefundInfo ebRefundInfo);
}
